package org.domain.sisteste.entity;

// Generated 12/11/2013 11:37:44 by Hibernate Tools 3.4.0.CR1

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

/**
 * TbClientedacelulateste generated by hbm2java
 */
@Entity
@Table(name = "tb_clientedacelulateste")
public class ClienteCelulaTeste implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1599124442689122419L;

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID_ClienteDaCelulaTeste", unique = true, nullable = false)
	private Integer id;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CD_Logradouro", nullable = false)
	@NotNull
	private Logradouro logradoura;
	
	@Column(name = "NO_RazaoSocial", nullable = false, length = 100)
	@NotNull
	@Length(max = 100)
	private String razaoSocial;
	
	@Column(name = "NR_CNPJ", nullable = false, length = 14)
	@NotNull
	@Length(max = 14)
	private String numeroCNPJ;
	
	@Column(name = "NO_Fantasia", nullable = false, length = 50)
	@NotNull
	@Length(max = 50)
	private String nomeFantasia;
	
	@Column(name = "TL_Fixo", nullable = false, length = 14)
	@NotNull
	@Length(max = 14)
	private String telefoneFixo;
	
	@Column(name = "NO_Representante", nullable = false, length = 30)
	@NotNull
	@Length(max = 30)
	private String nomeRepresentante;
	
	@Column(name = "TL_Fax", nullable = false, length = 14)
	@NotNull
	@Length(max = 14)
	private String telefoneFax;
	
	@Column(name = "NO_Site", length = 30)
	@Length(max = 30)
	private String nomeSite;
	
	@Column(name = "EE_ClienteDaCelulaTeste", length = 30)
	@Length(max = 30)
	private String emailClienteDaCelulaTeste;
	
	@Column(name = "DS_Complemento", length = 45)
	@Length(max = 45)
	private String descricaoComplemento;
	
	@OneToMany(fetch = FetchType.LAZY, mappedBy = "tbClientedacelulateste")
	private Set<Software> colecaoSoftware = new HashSet<Software>(0);

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the logradoura
	 */
	public Logradouro getLogradoura() {
		return logradoura;
	}

	/**
	 * @param logradoura the logradoura to set
	 */
	public void setLogradoura(Logradouro logradoura) {
		this.logradoura = logradoura;
	}

	/**
	 * @return the razaoSocial
	 */
	public String getRazaoSocial() {
		return razaoSocial;
	}

	/**
	 * @param razaoSocial the razaoSocial to set
	 */
	public void setRazaoSocial(String razaoSocial) {
		this.razaoSocial = razaoSocial;
	}

	/**
	 * @return the numeroCNPJ
	 */
	public String getNumeroCNPJ() {
		return numeroCNPJ;
	}

	/**
	 * @param numeroCNPJ the numeroCNPJ to set
	 */
	public void setNumeroCNPJ(String numeroCNPJ) {
		this.numeroCNPJ = numeroCNPJ;
	}

	/**
	 * @return the nomeFantasia
	 */
	public String getNomeFantasia() {
		return nomeFantasia;
	}

	/**
	 * @param nomeFantasia the nomeFantasia to set
	 */
	public void setNomeFantasia(String nomeFantasia) {
		this.nomeFantasia = nomeFantasia;
	}

	/**
	 * @return the telefoneFixo
	 */
	public String getTelefoneFixo() {
		return telefoneFixo;
	}

	/**
	 * @param telefoneFixo the telefoneFixo to set
	 */
	public void setTelefoneFixo(String telefoneFixo) {
		this.telefoneFixo = telefoneFixo;
	}

	/**
	 * @return the nomeRepresentante
	 */
	public String getNomeRepresentante() {
		return nomeRepresentante;
	}

	/**
	 * @param nomeRepresentante the nomeRepresentante to set
	 */
	public void setNomeRepresentante(String nomeRepresentante) {
		this.nomeRepresentante = nomeRepresentante;
	}

	/**
	 * @return the telefoneFax
	 */
	public String getTelefoneFax() {
		return telefoneFax;
	}

	/**
	 * @param telefoneFax the telefoneFax to set
	 */
	public void setTelefoneFax(String telefoneFax) {
		this.telefoneFax = telefoneFax;
	}

	/**
	 * @return the nomeSite
	 */
	public String getNomeSite() {
		return nomeSite;
	}

	/**
	 * @param nomeSite the nomeSite to set
	 */
	public void setNomeSite(String nomeSite) {
		this.nomeSite = nomeSite;
	}

	/**
	 * @return the emailClienteDaCelulaTeste
	 */
	public String getEmailClienteDaCelulaTeste() {
		return emailClienteDaCelulaTeste;
	}

	/**
	 * @param emailClienteDaCelulaTeste the emailClienteDaCelulaTeste to set
	 */
	public void setEmailClienteDaCelulaTeste(String emailClienteDaCelulaTeste) {
		this.emailClienteDaCelulaTeste = emailClienteDaCelulaTeste;
	}

	/**
	 * @return the descricaoComplemento
	 */
	public String getDescricaoComplemento() {
		return descricaoComplemento;
	}

	/**
	 * @param descricaoComplemento the descricaoComplemento to set
	 */
	public void setDescricaoComplemento(String descricaoComplemento) {
		this.descricaoComplemento = descricaoComplemento;
	}

	/**
	 * @return the colecaoSoftware
	 */
	public Set<Software> getColecaoSoftware() {
		return colecaoSoftware;
	}

	/**
	 * @param colecaoSoftware the colecaoSoftware to set
	 */
	public void setColecaoSoftware(Set<Software> colecaoSoftware) {
		this.colecaoSoftware = colecaoSoftware;
	}
}
